﻿<?php if ($this->pageCount)  { ?>

<div class="paginationControl">
<!-- First page link -->
<a href="<?php echo $this->url(array('page' => $this->first)); ?>"> &lt; Trang đầu </a>
<!-- Previous page link -->
<?php if (isset($this->previous)){ ?>
  <a href="<?php echo $this->url(array('page' => $this->previous)); ?>"> &lt; Trang sau
    </a> |
<?php } else { ?>
  <span class="disabled">&lt; Trang sau</span> |
<?php } ?>
 
 
<!-- Numbered page links -->
<?php foreach ($this->pagesInRange as $page){ ?>
  <?php if ($page != $this->current){ ?>
    <a href="<?php echo $this->url(array('page' => $page)); ?>"><?php echo $page; ?></a> |
  <?php } else { ?> <span class="disabled">
    <?php echo $page; ?> </span> |
  <?php } ?>
<?php } ?>
 
 
<!-- Next page link -->
<?php if (isset($this->next)){ ?>
  <a href="<?php echo $this->url(array('page' => $this->next)); ?>">Trang tiếp &gt;</a>
<?php } else { ?>
  <span class="disabled">Trang tiếp &gt;</span>
<?php } ?>
<!-- Last page link -->
<a href="<?php echo $this->url(array('page' => $this->last)); ?>">Trang cuối &gt;</a>

</div>
<?php } ?>